package service;

import dao.addUser;

import java.sql.SQLException;

public class AddUserService {

    //判断用户名是否能用
    public boolean CheckUserService(String username) throws SQLException {
        return new addUser().CheckUser(username);
    }
    //判断能否增加用户增加用户
    public boolean addUserService(String username, String password) throws SQLException {
        return new addUser().addUser(username, password);
    }
}
